package com.fengye.cloud.reactive.service.runner;

import com.fengye.cloud.reactive.service.service.TestEurekaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 *
 * @author sky
 * @date 2021年06月02日 10:22 上午
 */
@Component
public class AccountCommandLineRunner {

    @Autowired
    TestEurekaService testEurekaService;

    @Bean
    public CommandLineRunner getService() {
        return args -> System.out.println(testEurekaService.getEurekaService());
    }
}
